<?php
/**
 * 统一返回码
 */

namespace app\util;

class ReturnCode {

    const SUCCESS = 1; //操作成功
    const INVALID = 0; //操作失败
    const AUTH_ERROR = -1; //授权失效
    const CLIENT_VERSION_INVALID = -2; //客户端版本失效
    const SYSTEM_ERROR = -3; //系统级错误

    static public function getConstants() {
        $oClass = new \ReflectionClass(__CLASS__);
        return $oClass->getConstants();
    }

}